<!-- 材料信息 -->
<template>
  <div class="materials-card attachment-info mt-20">
    <div class="p-title mb-12">材料信息</div>
    <el-alert title="截图上传文件时，为了清晰度更高，请将图片放最大再截图" type="info" show-icon />
    <el-form class="form-inline-wrap mt-12" label-position="top" require-asterisk-position="right">
      <div class="form-wrap">
        <el-form-item label="主体证明（须盖章）" class="is-required">
          <upload-img accept=".pdf" acceptText="PDF"></upload-img>
        </el-form-item>
        <el-form-item label="注册委托书" class="is-required">
          <upload-img accept=".pdf" acceptText="PDF"></upload-img>
        </el-form-item>
        <el-form-item label="肖像使用证明" class="is-required" v-if="props.portrait">
          <upload-img accept=".pdf" acceptText="PDF"></upload-img>
        </el-form-item>
      </div>
    </el-form>
  </div>
</template>

<script lang="ts" setup>
import UploadImg from "./UploadImg.vue";
import { defineProps } from "vue";

const props = defineProps({
  portrait: {
    type: Boolean,
    default: true
  }
});
</script>

<style lang="scss" scoped>
.form-wrap {
  display: flex;
  justify-content: space-around;
}
</style>
